package com.suzhe.ymall.promotion.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.suzhe.ymall.promotion.mapper.CouponMapper;
import com.suzhe.ymall.promotion.pojo.Coupon;
import com.suzhe.ymall.promotion.service.ICouponService;
import lombok.extern.slf4j.Slf4j;
import org.apache.curator.framework.recipes.locks.InterProcessMutex;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 优惠券表 服务实现类
 * </p>
 *
 * @author suzhe
 * @since 2019-08-18
 */
@Service
@Slf4j
public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements ICouponService {

    @Autowired
    InterProcessMutex couponLock;//更新优惠券的库存，用到的锁
}
